<?php
	$user = $this->session->userdata('user');
	$menu = $this->session->userdata('menu');
?>
		<header class="header fixed" style="top: 0px;">
            <!--nav bar helper-->
            <div class="navbar-helper">
                <div class="row-fluid">
                    <!--panel site-name-->
                    <div class="span2">
                        <div class="panel-sitename">
                            <h2><?php echo anchor('/', '<span class="color-teal">SAS</span>CorePHP' , array('class' => 'brand')); ?></h2>
                        </div>
                    </div>
                    <!--/panel name-->

                   
                    <div class="span4 pull-right">
                        <!--panel button ext-->
                        <div class="panel-ext">  
                            <div class="btn-group user-group">
                                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                    <img class="corner-all" align="middle" src="<?php echo base_url('assets/img/user-thumb.jpg'); ?>" title="<?php echo $user['nome']; ?>" alt="<?php echo $user['nome']; ?>"> <!--this for display on PC device-->
                                    <button class="btn btn-small btn-inverse"><?php echo $user['nome']; ?></button> <!--this for display on tablet and phone device-->
                                </a>
                                <ul class="dropdown-menu dropdown-user" role="menu" aria-labelledby="dLabel">
                                    <li>
                                        <div class="media">
                                            <a class="pull-left" href="#">
                                                <img class="img-circle" src="<?php echo base_url('assets/img/user.jpg'); ?>" title="profile" alt="profile">
                                            </a>
                                            <div class="media-body description">
                                                <p><strong><?php echo $user['nome']; ?></strong></p>
                                                <p class="muted"><?php echo $user['email']; ?></p>
                                                <br>
                                                <a class="btn btn-primary btn-small btn-block">Perfil</a>
                                            </div>
                                        </div>
                                    </li>
                                    <li class="dropdown-footer">
                                        <div>
                                        	<?php echo anchor('/login/password', 'Alterar Senha',array("class"=>"btn btn-small")); ?>
                                        	<?php echo anchor('/login/sair', 'Sair',array("class"=>"btn btn-small pull-right")); ?>
                                        </div>
                                    </li>
                                </ul>
                            </div>
                        </div><!--panel button ext-->
                    </div>
                </div>
            </div><!--/nav bar helper-->
        </header>